package com.nanhai.buddhist.college.module.collegebase.convert.departments;

import java.util.*;

import com.nanhai.buddhist.college.framework.common.pojo.PageResult;

import com.nanhai.buddhist.college.module.collegebase.api.department.dto.DepartmentDTO;
import com.nanhai.buddhist.college.module.collegebase.controller.admin.departments.vo.DepartmentsCreateReqVO;
import com.nanhai.buddhist.college.module.collegebase.controller.admin.departments.vo.DepartmentsExcelVO;
import com.nanhai.buddhist.college.module.collegebase.controller.admin.departments.vo.DepartmentsRespVO;
import com.nanhai.buddhist.college.module.collegebase.controller.admin.departments.vo.DepartmentsUpdateReqVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import com.nanhai.buddhist.college.module.collegebase.controller.admin.departments.vo.*;
import com.nanhai.buddhist.college.module.collegebase.dal.dataobject.departments.DepartmentsDO;

/**
 * 学校管理--系部 Convert
 *
 * @author 开发
 */
@Mapper
public interface DepartmentsConvert {

    DepartmentsConvert INSTANCE = Mappers.getMapper(DepartmentsConvert.class);

    DepartmentsDO convert(DepartmentsCreateReqVO bean);

    DepartmentsDO convert(DepartmentsUpdateReqVO bean);

    DepartmentsRespVO convert(DepartmentsDO bean);

    List<DepartmentsRespVO> convertList(List<DepartmentsDO> list);

    PageResult<DepartmentsRespVO> convertPage(PageResult<DepartmentsDO> page);

    List<DepartmentsExcelVO> convertList02(List<DepartmentsDO> list);

    List<DepartmentDTO> convertDepartmentDTOList(List<DepartmentsDO> list);

    DepartmentDTO convertDepartmentDTO(DepartmentsDO bean);

}
